package com.indusfo.spc.client.service.impl;

import com.indusfo.spc.client.mapper.ClientOrderTechMapper;
import com.indusfo.spc.client.service.ClientOrderTechService;
import com.indusfo.spc.pojo.OrderTech;
import com.indusfo.spc.vo.JSONObject;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author chenm
 * @create 2019-12-31 16:50
 */
@Service
public class ClientOrderTechServiceImpl implements ClientOrderTechService {

  @Resource
  private ClientOrderTechMapper clientOrderTechMapper;

  @Override
  public JSONObject queryHistory(Integer orderId) {
    List<OrderTech> orderTeches = clientOrderTechMapper.queryHistory(orderId);
    return JSONObject.build(JSONObject.SUCCESS,"查询成功",orderTeches);
  }
}
